<?


include($_SERVER['DOCUMENT_ROOT'].'/portals/config.php');
include($_SERVER['DOCUMENT_ROOT'].'/groups/database.php');

init_session();


$_SESSION['user_id'] = 0;
$_SESSION['realname'] = '';
$_SESSION = array();


if (empty($_SERVER['HTTP_REFERER']) || strpos($_SERVER['HTTP_REFERER'],'edit.php') !== FALSE) {
	header("Location: ./");
} else {
	header("Location: ".$_SERVER['HTTP_REFERER']);
}

print "<a href=./>continue...</a>";